﻿@{
    //var controller = Html.GetCurrentController();
    //var action = Html.GetCurrentAction();

    List<DicDetail> dicList = new List<DicDetail>();
    if (Session["BusinessType"] != null)
    {
        dicList = (List<DicDetail>)Session["BusinessType"];
    }
}
<div class="meun1">
    <div class="meun2">
        @*<div class="meunbox">
                <div class="menu_top">
                    <a href="#">中心首页</a>
                    &nbsp;&nbsp;
                    <span>|</span>
                    &nbsp;&nbsp;
                    <a href="#">我的课程</a>
                </div>
            </div>*@
        <div class="meunbox">
            <div class="tit"><div class="t i1">我的课程</div></div>
            <div class="linktxt">
                <ul>
                    <li class="@Html.IsActiveStudentMenu("Index","Default")">
                        <a href="@Url.Action("Index","Default")">在学课程</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("LessonNote", "Student")">
                        <a href="@Url.Action("LessonNote", "Student")">课堂笔记</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("LearnHistory", "Student")">
                        <a href="@Url.Action("LearnHistory", "Student")">验证记录</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("PeriodDetails", "Student")">
                        <a href="@Url.Action("PeriodDetails", "Student")">学时明细</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("TrainHistory", "Student")">
                        <a href="@Url.Action("TrainHistory", "Student")">培训历史</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="meunbox">
            <div class="tit"><div class="t i2">练习测试</div></div>
            <div class="linktxt">
                <ul>
                    @foreach (var item in dicList)
                    {
                        <li>
                            <a href="@Url.Action("Index", "SimulatorExercise",new { businessType= item.Value,businessName=item.Name })">@(item.Value+ "模拟练习")</a>
                        </li>
                    }
                    @foreach (var item in dicList)
                    {
                        <li>
                            <a href="@Url.Action("Index", "SimulatorExam",new { businessType= item.Value,businessName=item.Name })">@(item.Value+ "模拟考试")</a>
                        </li>
                    }

                    <li class="@Html.IsActiveStudentMenu("Index", "ErrorQuestion")">
                        <a href="@Url.Action("Index", "ErrorQuestion")">错题记录</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("Index", "FavoriteQuestion")">
                        <a href="@Url.Action("Index", "FavoriteQuestion")">收藏题库</a>
                    </li>
                </ul>
            </div>
        </div>
        @*<div class="meunbox">
                <div class="tit"><div class="t c3">考试考核</div></div>
                <div class="linktxt">
                    <ul>
                        <li class="@Html.IsActiveStudentMenu("Index","ExamRecord")">
                            <a href="@Url.Action("Index","ExamRecord")">成绩查询</a>
                        </li>
                    </ul>
                </div>
            </div>*@

        <div class="meunbox last">
            <div class="tit"><div class="t i3">账号管理</div></div>
            <div class="linktxt">
                <ul>
                    <li class="@Html.IsActiveStudentMenu("Notice","Student")">
                        <a href="@Url.Action("Notice","Student")">通知公告</a>
                    </li>
                    <li class="@Html.IsActiveStudentMenu("Index","StudentAudits")">
                        <a href="@Url.Action("Index","StudentAudits")">登录日志</a>
                    </li>
                    @*<li><a href="@Url.Action("Logout","Default")">安全退出</a></li>*@
                </ul>
            </div>
        </div>
    </div>
</div>
